package com.qfedu.dao;

import com.qfedu.entity.Exercises;
import com.qfedu.entity.QuestionCountAndeType;

import java.util.List;


public interface exercisesDao {

    /**
     * 增加练习
     * @param exercises
     * @return
     */
    int addExerciser(Exercises exercises);


    /**
     * 查询所有练习
     * @return
     */
    List<Exercises> getAllExercises();


    /**
     * 根据id删除练习
     * @param id
     * @return
     */
    int deleteExerciser(int id);


    List<QuestionCountAndeType> getExercisesTypeAndCount();
}
